package com.xiaoyu.util2;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegUtil {
	public static boolean isMatche(String str, String reg) {
		Pattern pattern = Pattern.compile(reg);
		Matcher isNum = pattern.matcher(str);
		return (isNum.matches());
	}
}